package com.hjq.demo.yuliao.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.dylanc.viewbinding.brvah.getBinding
import com.hjq.demo.R
import com.hjq.demo.databinding.CopyItemBinding
import com.hjq.demo.databinding.ItemHomeMainRecommendBinding


/**
 *
 * @author jiahe
 * 创建日期 2022/2/8
 * 描述 首页推荐
 *
 */
class HomeMainRecommendAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_home_main_recommend) {

    override fun convert(holder: BaseViewHolder, item: String) {

        holder.getBinding(ItemHomeMainRecommendBinding::bind).apply {
            tvLiving.text = item
        }
    }

}